﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Dog: Animal,ISwim
    {
        private ISwim s1;

        public Dog() { }

        public Dog(string name)
        {
            this.Name = name;
        }

        public void Swim()
        {
            Console.WriteLine("我还会游泳！！");
        }
    }
}
